package com.starmark.core.framework.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Component
@ConfigurationProperties(prefix = "starmark.security.conf")
@Data
public class WebSettings {


    /**
     * 静态资源映射
     */
    public Map<String, List<String>> staticMappings = new HashMap<>();


    /**
     * 支持匿名访问方法
     */
    private Map<String, List<String>> anonUrl = new HashMap<>();

    /**
     * 允许跨域的网站
     */
    public List<String> allowedOrigins = new ArrayList<>();


}
